package com.athena.crm.mapper;

import com.athena.crm.domain.AssetDebtInfo;
import com.athena.crm.domain.vo.AssetDebtInfoVo;
import com.athena.common.core.mapper.BaseMapperPlus;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.sql.Wrapper;
import java.util.List;

/**
 * 债权信息Mapper接口
 *
 * @author ruoyi
 * @date 2023-12-27
 */
@DS("slave")
public interface AssetDebtInfoMapper extends BaseMapperPlus<AssetDebtInfoMapper, AssetDebtInfo, AssetDebtInfoVo> {
    void batchInsert(@Param("assetDebtInfoList") List<AssetDebtInfo> assetDebtInfoList);
    Long getCount(@Param("sql") String sql);
    Long selectAssetDebtInfoCount(@Param(Constants.WRAPPER) LambdaQueryWrapper ew);
    List<AssetDebtInfoVo> selectAssetDebtInfoList(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param(Constants.WRAPPER) LambdaQueryWrapper ew);
}
